/*
 * jiyan1
 */
package com.jiyan.errortype.service;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

import com.rzhkj.core.base.BaseMybatisDAO;
import com.rzhkj.core.base.BaseMybatisSVImpl;

import com.jiyan.errortype.facade.ErrortypeSV;
import com.jiyan.errortype.dao.ErrortypeDAO;
import com.jiyan.errortype.entity.Errortype;


/**
 * 错误类型
 * @author jiyan
 */
@Component
@Service
public class ErrortypeSVImpl extends BaseMybatisSVImpl<Errortype,Long> implements ErrortypeSV{


	@Resource
	private ErrortypeDAO errortypeDAO;

    @Override
    protected BaseMybatisDAO getBaseMybatisDAO(){
		return errortypeDAO;
	}


	/**
	 * 加载对象错误类型 通过code
	 * @param code 类型编码
	 * @return Errortype
	 */
     @Override
     public Errortype loadByCode(java.lang.String code) {
		return errortypeDAO.loadByCode(code);
	 }

     /**
      * 删除对象错误类型
	   * @param id id* @param code 类型编码
      */
	 @Override
     public void delete(java.lang.Long id,java.lang.String code) {
		errortypeDAO.delete(id,code);
	 }



}